# -*- coding: utf-8 -*-
# @Time    : 2021/11/22
# @Author  : 王森
# @Email   : mat_wu@163.com
# @File    : manag.py.py
# @Software: PyCharm

from ronglian_sms_sdk import SmsSDK
import random
accId = '8aaf07087e7b9872017f20bfea591acf'
accToken = 'cebd18474df5466a8eec2cc824004135'
appId = '8aaf07087e7b9872017f20bfeb5e1ad6'


def send_message(mobile):
    # res = random.randint(10000,9999)
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'  # 容联云分配的一个测试短信验证码模版
    # mobile = '18337712992'  # 接收短信的手机号
    data = random.randint(10000,9999)
    datas =(data,5)
    resp = sdk.sendMessage(tid, mobile, datas)
    print(">>>>!!@#",resp)
    return resp
